﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Controls.Primitives;

namespace rpncs
{
    public partial class MultiFunctionButton :  UserControl
    {
        
          
        private String defaultContent = "", altContent = "";
        public Boolean isShifted = false;
        

      
        public MultiFunctionButton()
        {
            InitializeComponent();
        }
        
    
        public MultiFunctionButton(String value, String altValue)
        {
            this.defaultContent=value;
            this.altContent = altValue;
            this.Button.Content = altContent; 
        }

        public void setDefault(String dflt)
        {
            this.defaultContent = dflt;
            this.Button.Content = defaultContent;
        }

        public void shift()
        {
            this.isShifted = true;
            this.Button.Content = altContent;

            this.Style.SetValue(BorderThicknessProperty, 3);
             
        }

        public void unShift()
        {
            Button.Content = defaultContent;
            this.isShifted = false;
            this.Style.SetValue(BorderThicknessProperty, 1);
        }
    }
}
